package cn.xd.itstack.springframework.context.event;


import cn.xd.itstack.springframework.context.ApplicationEvent;
import cn.xd.itstack.springframework.context.ApplicationListener;

/**
 * @Classname ApplicationEventMulticaster
 * @Description TODO
 * @Date 2022/5/28 下午3:11
 * @Created by lvxiaodong
 */
public interface ApplicationEventMulticaster {

    //添加监听
    void addApplicationListener(ApplicationListener<?> listener);

    //删除监听
    void removeApplicationListener(ApplicationListener<?> listener);

    //广播事件
    void multicastEvent(ApplicationEvent event);
}
